package com.yuju.vo.group;

import com.yuju.common.BaseVO;
import com.yuju.common.fileld.validator.Rule.NonNull;

import java.util.Date;
/**
 * 
 * 类名：DepartmentVO  <br />
 *
 * 功能：
 *
 * @author : zhousc <br />
 * @Date : 2017年11月27日 上午10:35:30  <br />
 * @version : 1.1 <br />
 */
public class DepartmentVO extends BaseVO{
	// 当前页码
	@NonNull(message = "页数不能为空", serviceLine = "pager")
	private Integer page;
	// 每页显示记录数
	@NonNull(message = "每页显示行数不能为空", serviceLine = "pager")
	private Integer pageSize;
    /**
     *  主键。存储UUID，由应用生成。,所属表字段为grp_department.id
     */
	@NonNull(message = "部门ID不能为空", serviceLine = "update,del,get")
    private String id;

    /**
     *  名称。,所属表字段为grp_department.name
     */
    @NonNull(message = "部门名称不能为空", serviceLine = "save,update,selectbyname")
    private String name;

    /**
     *  所属集团。外键，引用集团信息表（grp_group）的主键（id）。,所属表字段为grp_department.group_id
     */
    @NonNull(message = "集团ID不能为空", serviceLine = "save,selectbyname")
    private String groupId;

    /**
     *  所属酒店。外键，引用酒店信息表（grp_hotel）的主键（id）。,所属表字段为grp_department.hotel_id
     */
    private String hotelId;

    /**
     *  创建时间。,所属表字段为grp_department.gmt_create
     */
    private Date gmtCreate;

    /**
     *  修改时间。,所属表字段为grp_department.gmt_modified
     */
    private Date gmtModified;

    /**
     *  是否逻辑删除。0表示未删除，1表示已逻辑删除。,所属表字段为grp_department.is_deleted
     */
    private Byte isDeleted;
    //---新增属性------------------------------------------------------------------
    /**
     *  前端传到后端的所属分店字符串  例：1，2，3
     */
    @NonNull(message = "所属分店不能为空", serviceLine = "save,selectbyname")
    private String hotelIds;

    private static final long serialVersionUID = 1L;

	public DepartmentVO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getHotelId() {
		return hotelId;
	}

	public void setHotelId(String hotelId) {
		this.hotelId = hotelId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public Byte getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Byte isDeleted) {
		this.isDeleted = isDeleted;
	}

	public String getHotelIds() {
		return hotelIds;
	}

	public void setHotelIds(String hotelIds) {
		this.hotelIds = hotelIds;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public DepartmentVO(Integer page, Integer pageSize, String id, String name, String groupId, String hotelId,
			Date gmtCreate, Date gmtModified, Byte isDeleted, String hotelIds) {
		super();
		this.page = page;
		this.pageSize = pageSize;
		this.id = id;
		this.name = name;
		this.groupId = groupId;
		this.hotelId = hotelId;
		this.gmtCreate = gmtCreate;
		this.gmtModified = gmtModified;
		this.isDeleted = isDeleted;
		this.hotelIds = hotelIds;
	}

    
}